package hutech.ksv.service;

import hutech.ksv.dao.NhaTroDao;
import hutech.ksv.entity.NhaTroEntity;

import java.io.Serializable;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class NhaTroService implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Autowired
	NhaTroDao nhaTroDao;

	public void insertNhaTro(NhaTroEntity nhatro) {
		nhaTroDao.insertNhaTro(nhatro);
	}

	public void updateNhaTro(NhaTroEntity nhatro) {
		nhaTroDao.updateNhaTro(nhatro);
	}
	
	public List<NhaTroEntity> loadThongTinNT() {
		return nhaTroDao.loadThongTinNT();
	}
	
	public List<NhaTroEntity> loadMaNT() {
		return nhaTroDao.loadMaNT();
	}
	
	public List<NhaTroEntity> loadDSNTTheoGia(NhaTroEntity nhatro) {
		return nhaTroDao.loadDSNTTheoGia(nhatro);
	}
	
	public List<NhaTroEntity> loadDSNTTheoDC(NhaTroEntity nhatro) {
		return nhaTroDao.loadDSNTTheoDC(nhatro);
	}
}
